<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<base href="${webInfo.domain }" />

		<title>添加书籍</title>

		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
		<meta http-equiv="pragma" content="no-cache" />
		<meta http-equiv="cache-control" content="no-cache" />
		<meta http-equiv="expires" content="0" />
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
		<meta http-equiv="description" content="This is my page" />
		<!-- JS File -->
		<link type="image/x-icon" href="favicon.ico" rel="shortcut icon" />
		<link rel="stylesheet" type="text/css" href="style/JS/container/assets/skins/sam/container.css" />
		<link id="change_url" rel="stylesheet" type="text/css" href="style/base.css" />
		<script src="js/jquery.js" type="text/javascript"></script>

	</head>
	<body class="page yui-skin-sam page-min-width">
		 
			<!-- 主体 -->
			<div class="trip-manager clearfix">
				<div class="bd clearfix">
					<!-- 主栏 -->
					<div class="main">
						<div class="col1">
							<div class="mod3 card">
								<div class="hd">
									<div class="hd-l"></div>
									<h2>
										新增书籍
									</h2>
								</div>
								<div class="bd">
									<div class="bd-l clearfix">
										<form action="system/book!addBook.do" method="post">
											<table width="96%" cellspacing="0" cellpadding="0" border="0"
												style="margin-bottom: 20px;" valign="middle" class="table3">
												<tbody> 
												
													<tr>
														<th align="right">
															<span class="red">*</span>爬虫类型
														</th>
														<td> 
															<select name="book.crawler" size="20">
																<option value="qidian">起点</option>
																<option value="qdmm">起点MM</option>
																<option value="ireader">掌阅</option>
																<option value="773buy">燃文</option>
																<option value="chuangshi"> 创世 QQ</option>
																<option value="k17">17K小说网</option>
																<option value="tadu">塔读</option>
																<option value="go114">114书苑</option>
																<option value="changxiang">畅想</option>
																<option value="qududu">去读读</option>
																<option value="quduwu">去读屋</option>
																<option value="bbquge">新笔趣阁</option>
																<option value="qiuwu">凤舞文学</option>
																<option value="baoliny">风云小说</option>
																<option value="tianjin">天津小说</option>
															<!-- 
																 -->
																<option value="piaotian" selected="selected">飘天</option> 
															
																<option value="du5">吾读吾</option>
																<option value="pinnong">贫农</option>
																<option value="zw69">69中文网</option>
																<option value="biqi">比奇中文网</option>
																<!-- 
																 -->
																<option value="shuhuang">书荒[封]</option>
																<option value="biquge">笔趣阁[封]</option>
																<option value="k16">16kook[封]</option>
																<option value="zongheng">纵横[封]</option>
																<option value="siluke">思路客[封]</option>
															</select> 
														</td>
													</tr>
													
													
													<tr>
														<th align="right">
															<span class="red">*</span>爬取网站的ID
														</th>
														<td>
															<input type="text" id="text3" name="book.webId" class="input-default" />
														</td>
													</tr>
													
													
													<tr>
														<th align="right">
															<span class="red">*</span>名字
														</th>
														<td>
															<input type="text" id="text3" name="book.bookName" class="input-default" />
														</td>
													</tr> 
													<tr>
														<th align="right">
															<span class="red">*</span>分类
														</th>
														<td>
															<select name="book.category" size="7">
																<c:forEach items="${categoryList}" var="item" begin="0" step="1" varStatus="statu">
																	<option id='o${statu.count}' value="${ item.cateName}"> -- ${ item.cateName} --</option>
																</c:forEach>
															</select>
															<script type="text/javascript"> 
																$("option[value='玄幻小说']").attr("selected","selected");
															</script>
														</td>
													</tr> 
													<tr>
														<th align="right">
															<span class="red"></span>排名 (越大越靠前)
														</th>
														<td> 
															<input id="textfield4" name="book.isRecommend"
																class="input-default" value='0'/>
														</td>
													</tr> 
													<tr>
														<th align="right">
															<span class="red"></span>作者
														</th>
														<td>
															<input value="" type="text" id="textfield4" name="book.authorName"
																class="input-default" />
														</td>
													</tr> 
													<tr>
														<th align="right">
															<span class="red"></span>简介
														</th>
														<td>
															<textarea name="book.describ" cols="50" rows="3"
																style="width: 300px; "></textarea>  
														</td>
													</tr> 
													<tr>
														<th align="right">
															<span class="red"></span>description
														</th>
														<td>
															<textarea name="book.description" cols="50" rows="2"
																style="width: 300px; "></textarea> 
														</td>
													</tr> 
													<tr>
														<th align="right">
															<span class="red"></span>keywords
														</th>
														<td>
															<textarea name="book.keywords" cols="50" rows="1"
																style="width: 300px;  "></textarea>
																 
														</td>
													</tr> 
													<tr>
														<th align="right">
															<span class="red"></span>图片
														</th>
														<td>
															<input value="" type="text" id="textfield4" name="book.picPath"
																class="input-default" />
														</td>
													</tr> 
												</tbody>
											</table>
											<div class="tc">
												<input type="submit" class="btn2-s" value="保存" />
												<input type="button" class="btn2-s" value="返回" onclick="window.history.go(-1);" />
											</div>
										</form>
									</div>
								</div>
								<div class="ft">
									<div class="ft-l"></div>
								</div>
							</div>
						</div>
					</div>
				</div>
				<!-- / 主栏 -->
			</div>
			<!-- / 主体 --> 
	</body>
</html>
